import VueRouter from 'vue-router';
import Vue from "vue";
Vue.use(VueRouter)
import routes from './routes';
const router = new VueRouter({
    base: process.env.BASE_URL,
    routes,
})
router.beforeEach((to, from, next) => {
    let title = to.matched[0].meta.title;
    document.title = title ? title + " | TowDog" : "TowDog";
    next();
})
export default router